package com.motorhome.manage.common.statics;

import java.io.IOException;
import java.util.Properties;

/**
 * @author: John
 */
public class ManageStatics {

    private static Properties prop = new Properties();

    static {
        try {
            prop.load(ManageStatics.class.getResourceAsStream("/config/conf-manage.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static final String SESSION_KEY = "MH_MANAGE_SESSION";

    public static final String KAPTCHA_SESSION_KEY = "MH_MANAGE_KAPTCHA_SESSION_KEY";

    public static final String KAPTCHA_CACHE_KEY = "MH_MANAGE_KAPTCHA_CACHE_KEY";

    public static final Long MANAGE_TIMEOUT = Long.parseLong(prop.getProperty("manage.session.timeout"));

    public static final String baseFileUrl = prop.getProperty("manage.file.url");

    public static final String baseFilePath = prop.getProperty("manage.file.path");

    public static final String OPEN_ID = prop.getProperty("manage.open.openid");
    public static final String OPEN_SECRET = prop.getProperty("manage.open.secret");
    public static final String OPEN_USER_ACCOUNT = prop.getProperty("manage.open.user_account");
    public static final String UPDATE_MEMBERPOINT_URL = prop.getProperty("manage.open.update_memberpoint_url");

}
